package com.xhwl.data.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xhwl.common.pojo.ResultJson;
import com.xhwl.common.pojo.config.OrganizationConfig;
import com.xhwl.common.pojo.config.OrganizationConfigVO;
import com.xhwl.common.query.OrganizationConfigQuery;
import feign.Param;
import feign.RequestLine;
import org.springframework.cloud.openfeign.FeignClient;

import java.util.List;

/**
 * @Author: luyi
 * @Description: 组织配置
 * @Date: Create in 10:17 2021/5/19
 */
@FeignClient(name = "cent-sysconfig")
public interface IOrganizationConfigFeignService {

    @RequestLine(value = "POST /org-config-service/batch-create")
    ResultJson batchCreate(@Param("organizationConfigs") List<OrganizationConfig> organizationConfigs);

    @RequestLine(value = "POST /org-config-service/list")
    List<OrganizationConfig> list(@Param("organizationConfigQuery") OrganizationConfigQuery organizationConfigQuery);

    @RequestLine(value = "POST /org-config-service/delete")
    ResultJson delete(@Param("id") Integer id);

    @RequestLine(value = "POST /org-config-service/one")
    OrganizationConfig one(@Param("organizationConfigQuery") OrganizationConfigQuery organizationConfigQuery);

    @RequestLine(value = "POST /org-config-service/page")
    Page<OrganizationConfig> page(@Param("organizationConfigQuery") OrganizationConfigQuery organizationConfigQuery, @Param("page") Page page);

    @RequestLine(value = "POST /org-config-service/pageTree")
    Page<OrganizationConfigVO> pageTree(@Param("organizationConfigQuery") OrganizationConfigQuery organizationConfigQuery, @Param("page") Page page);
}
